package tjs.study.notes.elasticsearch.model;

import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Nicky.Tang on 2022/10/31 上午11:40
 *
 * @since 02.12.10
 */
@Data
public class Student {
    private String id;
    private String studentName;
    private int age;
    private List<Course> course;
    private Map<String, Object> tags = new HashMap<>();

    @Data
    public static class Course {
        private String courseName;
        private List<Unit> units;

        @Data
        public static class Unit {
            private String unitName;
            private Double grade;
        }
    }
}
